<extend name="template/base_index" />

<block name="area_header">

</block>

<block name="area_body">
    {:W('Menus/topbar')}
    <div class="admin-main container-fluid">
        {:W('Menus/left')}
        <div class="admin-main-content">
            {:W('Menus/breadcrumb')}
            <div class="table-responsive well">
                <!-- 操作按钮 -->
                <div class="btn-controls">
                    <a class="btn btn-sm btn-primary" href="{:U('Admin/Enterprise/add_job')}"><i class="fa fa-plus"></i>{:L('BTN_ADD')}</a>
                </div>

                <table class="table table-striped table table-hover  table-condensed">
                    <thead>
                    <tr>
                        <th style="width:40px;">
                            <input type="checkbox" class="selectall" onclick="myUtils.selectall(this,'.selectitem');" />
                        </th>
                        <th>
                            UID
                        </th>
                        <th>
                            岗位名称
                        </th>
                        <th>
                            更新时间
                        </th>
                        <th>
                            是否通过审核
                        </th>
                        <th>
                            {:L('OPERATOR')}
                        </th>
                    </tr>
                    </thead>
                    <tbody>
                    <empty name="list">
                        <tr>
                            <td colspan="8" class="text-center">{:L('NO_DATA')}</td>
                        </tr>
                        <else/>
                        <volist name="list" id="vo">
                            <tr>
                                <td>
                                    <input type="checkbox" value="{$vo.uid}" name="uids[]" class="selectitem" /></td>

                                <td>
                                    {$vo.id}</td>
                                <td>
                                    <a href="{:U('Admin/Enterprise/view_employ',array('id'=>$vo['id']))}" target="_blank">{$vo.title|default='未知昵称'}</a></td>
                                <td>
                                    {$vo.update_time|date='Y-m-d',###}</td>

                                <td><if condition="$vo['valid_status'] eq 1">审核通过<else />不通过</if></td>
                                <td>
                                    <a href="{:U(CONTROLLER_NAME .'/edit_job',array('id'=>$vo['id']))}" class="btn  btn-primary btn-sm" ><i class="fa fa-pencil"></i> 编辑</a>
                                    <a href="{:U(CONTROLLER_NAME .'/delete_job',array('id'=>$vo['id']))}" class="btn btn-danger btn-sm ajax-get confirm" ><i class="fa fa-trash-o"></i> {:L('BTN_DELETE')}</a>
                                </td>
                            </tr>

                        </volist>
                    </empty>
                    </tbody>
                </table>
                <center><div style="display:inline-block">{$show}</div></center>
            </div>
        </div>
        <!-- END admin-main-content -->
    </div>
    <!-- END admin-main-->
</block>

<block name="area_footer">

</block>
